package com.chaosj.skill.prometheus.customizer

import io.micrometer.core.instrument.MeterRegistry

/**
 * @Description:
 * @author caoyangjie
 * @date 2020年01月2020/1/23日 12:03
 * @Copyright: © 赢时胜
 */
class ApplicationCustomizer implements MeterRegistryCustomizer{
    String application

    ApplicationCustomizer(def applicationName) {
        this.application = applicationName
    }

    @Override
    void customize(MeterRegistry registry) {
        registry.config().commonTags("application", application)
    }
}
